// pages/mine/myinfo/index.js
const app = getApp().globalData
import {
  
} from '../../../api/index'
Page({
  data: {
    list: {},
  },
  onLoad: function (e) {
    console.log(e);
    var worker = JSON.parse(e.worker);
    console.log(worker)
    if (worker) {
      this.setData({
        list: worker,
      })
    }
  },
  getUserInfo() {
    getuserinfo().then(res => {
      if (res.status == 1) {
        this.setData({
          type: res.datas.type
        })
      }
    })
  },
  
  submit() {
    wx.openLocation({
      latitude: 36.92021,
      longitude: 121.5402,
      scale: 5,
      name: '黄南政务',
      address: '地址：乳山358路,乳山212路,乳山211路'
    })
  },
  onShow: function () {

  },
  openlocation1() {
    console.log('------');
    wx.openLocation({
      latitude: 36.92021,
      longitude: 121.5402,
      scale: 5,
      name: '黄南政务',
      address: '地址：乳山358路,乳山212路,乳山211路'
    })
  },
})